﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Manage.ascx.cs" Inherits="Views_Categories_Manage" %>
<%@ Register Src="ManageTVl.ascx" TagName="ManageTVl" TagPrefix="uc1" %>
<%--<script language="javascript" type="text/javascript" src="/scripts/ManageCategories.js"></script>--%>

<script language="javascript" type="text/javascript" src="/scripts/ManageCategories.js"></script>

<div class="HomeRightTitle">
	<div class="RightTitleCH">
		<asp:Literal ID="Literal1" runat="server" Text="类别管理"></asp:Literal>
	</div>
	<div class="RightTitleEN">
		<asp:Literal ID="Literal2" runat="server" Text="Frontfree"></asp:Literal>
	</div>
	<div class="SearchStyle">
	</div>
</div>
<div id="DetailBodyRightMain" class="MinHeight_500">
	<div class="CatoryManageList">
		<uc1:ManageTVl ID="ManageTV" runat="server" />
	</div>
	<div style="height: 20px; width: 30%; float: left; padding-left: 20px;">
		<div>
			<asp:TextBox ID="tb_ModifiedName" runat="server" Width="202px" onkeyup="checkButtonDisplay()"></asp:TextBox>
		</div>
		<div style="float: left; padding-right: 5px; padding-top: 10px;">
			<asp:Button ID="btn_AddCategory" runat="server" Text="添加类别" CssClass="Btn_100" />
		</div>
		<div style="padding-top: 10px;">
			<asp:Button ID="btn_AddChildCategory" runat="server" Text="添加为子类别" CssClass="Btn_100" />
		</div>
		<div style="padding-top: 10px;">
			<asp:Button ID="btn_EditCategory" runat="server" Text="修改当前类别" CssClass="Btn_100" />
		</div>
		<div style="padding-top: 10px;">
			<asp:Button ID="btn_DeleteCategory" runat="server" Text="删除当前类别" OnClientClick="return confirm('确定删除此类别及所有子类别么？删除后将无法恢复，所属文章将移入未分类。')"
				CssClass="Btn_100" />
		</div>
	</div>
</div>

<script language="javascript" type="text/javascript">
	tb_Text = document.getElementById("<%=tb_ModifiedName.ClientID %>");
	btn_Add = document.getElementById("<%=btn_AddCategory.ClientID %>");
	btn_AddChild = document.getElementById("<%=btn_AddChildCategory.ClientID %>");
	btn_Modify = document.getElementById("<%=btn_EditCategory.ClientID %>");
	btn_Delete = document.getElementById("<%=btn_DeleteCategory.ClientID %>");

	checkButtonDisplay();
</script>

